package 观察着模式;

public class GuMing implements Observe {
     private String name;
     public GuMing(String name){
         this.name=name;
     }

    public void update (double price) {
        System.out.println(name+"收到股票价格："+price);
    }
}
